package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.alibaba.fastjson.annotation.JSONField;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.math.BigDecimal;
import org.locationtech.jts.geom.Geometry;
import lombok.Data;
import cn.topevery.garden.entity.serializer.GeometrySerializer;

/**
 * 公共阅读状态
 */
@Data
@DbTable(tableName = "t_bulletin_read")
public class BulletinRead extends BaseEntity {
        /**
     * 公告Id
     */
    @DbTableField(columnName = "c_bulletin_Id", dbType = DbTypeEnum.VARCHAR)
    public String bulletinId ;

    /**
     * 用户Id 
     */
    @DbTableField(columnName = "c_user_id", dbType = DbTypeEnum.VARCHAR)
    public String userId ;

    /**
     * 用户名称 
     */
    @DbTableField(columnName = "c_user_name", dbType = DbTypeEnum.VARCHAR)
    public String userName ;

    /**
     * 状态 0 未读  1 已读 
     */
    @DbTableField(columnName = "c_read_status", dbType = DbTypeEnum.SMALLINT)
    public Short readStatus ;

    /**
     * 阅读时间 
     */
    @DbTableField(columnName = "c_read_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime readDate ;


}
